import request from '@/utils/request'


//  平台操作日志列表
export function operloglist(query) {
  return request({
    url: `/monitor/operlog/list`,
    method: 'get',
    params: query
  })
}
// 平台登录日志列表
export function logininforlist(query) {
  return request({
    url: '/monitor/logininfor/list',
    method: 'get',
    params: query
  })
}


// 商家操作日志列表
export function operlogmerchantlist(query) {
  return request({
    url: `/monitor/operlog/merchant/list`,
    method: 'get',
    params: query
  })
}
// 商家登录日志列表
export function logininformerchantlist(query) {
  return request({
    url: '/monitor/logininfor/merchant/list',
    method: 'get',
    params: query
  })
}

// 查询操作日志列表
export function list(query) {
  return request({
    url: '/monitor/operlog/list',
    method: 'get',
    params: query
  })
}

// 删除操作日志
export function delOperlog(operId) {
  return request({
    url: '/monitor/operlog/' + operId,
    method: 'delete'
  })
}

// 清空操作日志
export function cleanOperlog() {
  return request({
    url: '/monitor/operlog/clean',
    method: 'delete'
  })
}
